﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using XukaShop.Biz;
using XukaShop.Models.Entities;

namespace XukaShop.Areas.Admin.Controllers
{
    public class MessageController : Controller
    {
        private MessageBiz _messageBiz = new MessageBiz();

        [HttpGet]
        public ActionResult Index()
        {
            List<Message> lstMessage = new List<Message>();
            lstMessage = _messageBiz.GetListMessage();
            return View(lstMessage);
        }

        [HttpGet]
        public ActionResult MessageDetail(int messageId)
        {
            Message message = new Message();
            message = _messageBiz.GetMessageById(messageId);
            return View(message);
        }
    }
}
